import {
  sysSettinglist,
  saveSysSetting
} from '@/api/service'
const setting = {
  actions: {
    // 获取设置数据
    SysSettinglist({ commit }, postselectinfo) {
      return new Promise((resolve, reject) => {
        sysSettinglist(postselectinfo).then(response => {
          resolve(response.data)
        }).catch(error => {
          reject(error)
        })
      })
    },
    // 保存设置数据
    SaveSysSetting({ commit }, postselectinfo) {
      return new Promise((resolve, reject) => {
        saveSysSetting(postselectinfo).then(response => {
          resolve(response.data)
        }).catch(error => {
          reject(error)
        })
      })
    }
  }
}

export default setting
